package com.hxexp.weixin.hpe.api.orderpayment.model;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

/**
 * 预支付订单返回结果
 *
 * @author li.jiang
 *
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public final class PrepayOrderResultBean implements Serializable {

    private static final long serialVersionUID = 7483036244274238257L;
    // 执行结果，1代表成功
    private Integer ret;
    // 错误代码,0表示没有错误
    private Integer errorCode;
    // 错误消息
    private String errorMessage;
    // 应用ID
    private String appid;
    // 商户ID
    private String mchId;
    // 随机数
    private String nonceStr;
    // 微信签名
    private String sign;
    // 交易类型
    private String tradeType;
    // 预支付交易会话标识
    private String prepayId;
    // 二维码链接  (trade_type为NATIVE时有返回，可将该参数值生成二维码展示出来进行扫码支付)
    private String codeUrl;
    // 时间戳
    private Long timestamp;
    /**
     * @return the ret
     */
    public Integer getRet() {
        return ret;
    }
    /**
     * @param ret the ret to set
     */
    public void setRet(Integer ret) {
        this.ret = ret;
    }
    /**
     * @return the errorCode
     */
    public Integer getErrorCode() {
        return errorCode;
    }
    /**
     * @param errorCode the errorCode to set
     */
    public void setErrorCode(Integer errorCode) {
        this.errorCode = errorCode;
    }
    /**
     * @return the errorMessage
     */
    public String getErrorMessage() {
        return errorMessage;
    }
    /**
     * @param errorMessage the errorMessage to set
     */
    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }
    /**
     * @return the appid
     */
    public String getAppid() {
        return appid;
    }
    /**
     * @param appid the appid to set
     */
    public void setAppid(String appid) {
        this.appid = appid;
    }

    /**
     * @return the mchId
     */
    public String getMchId() {
        return mchId;
    }

    /**
     * @param mchId
     *            the mchId to set
     */
    public void setMchId(String mchId) {
        this.mchId = mchId;
    }

    /**
     * @return the nonceStr
     */
    public String getNonceStr() {
        return nonceStr;
    }

    /**
     * @param nonceStr
     *            the nonceStr to set
     */
    public void setNonceStr(String nonceStr) {
        this.nonceStr = nonceStr;
    }
    /**
     * @return the sign
     */
    public String getSign() {
        return sign;
    }
    /**
     * @param sign the sign to set
     */
    public void setSign(String sign) {
        this.sign = sign;
    }

    /**
     * @return the tradeType
     */
    public String getTradeType() {
        return tradeType;
    }

    /**
     * @param tradeType
     *            the tradeType to set
     */
    public void setTradeType(String tradeType) {
        this.tradeType = tradeType;
    }

    /**
     * @return the prepayId
     */
    public String getPrepayId() {
        return prepayId;
    }

    /**
     * @param prepayId
     *            the prepayId to set
     */
    public void setPrepayId(String prepayId) {
        this.prepayId = prepayId;
    }

    /**
     * @return the codeUrl
     */
    public String getCodeUrl() {
        return codeUrl;
    }

    /**
     * @param codeUrl
     *            the codeUrl to set
     */
    public void setCodeUrl(String codeUrl) {
        this.codeUrl = codeUrl;
    }
    /**
     * @return the timestamp
     */
    public Long getTimestamp() {
        return timestamp;
    }
    /**
     * @param timestamp the timestamp to set
     */
    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }

    /*
     * (non-Javadoc)
     *
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return String.format(
                "PrepayOrderResultBean [ret=%s, errorCode=%s, errorMessage=%s, appid=%s, mchId=%s, nonceStr=%s, sign=%s, tradeType=%s, prepayId=%s, codeUrl=%s, timestamp=%s]",
                ret, errorCode, errorMessage, appid, mchId, nonceStr, sign, tradeType, prepayId, codeUrl, timestamp);
    }

}
